﻿package com.saint {
	
	import flash.display.Shape;
	import flash.display.Sprite;
	import flash.geom.Rectangle;
	import flash.display.Stage;
	
	/**
	 * ...
	 * @author wattonn
	 */
	
	
	public class MotionCross extends Sprite {
		
		private var vert:			Shape;
		private var horz:			Shape;
		private var colour:			int = 0xFFFFFF;
		private var w:				int = 8;
		private var h:				int = 8;
		
		public function MotionCross(stage:Stage) {
			vert = new Shape();
			horz = new Shape();
			
			vert.graphics.lineStyle(0, colour);
			horz.graphics.lineStyle(0, colour);
			
			vert.graphics.lineTo(0, stage.stageHeight);
			horz.graphics.lineTo(stage.stageWidth, 0);
			
			addChild(vert);
			addChild(horz);
		}
		
		public function update(motionArea:Rectangle):void {
			vert.x = motionArea.x + (motionArea.width / 2);
			horz.y = motionArea.y + (motionArea.height / 2);
		}
		
	}

}